package com.mt.demo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mt.demo.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 成员进出明细对象 mt_member_detail
 * 
 * @author gary
 * @date 2025-08-11
 */
public class MtMemberDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long detailId;

    /** 会议ID */
    @Excel(name = "会议ID")
    private Long meetingId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 本次入会时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "本次入会时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinTime;

    /** 本次退会时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "本次退会时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaveTime;

    /** 本次参会时长（秒） */
    @Excel(name = "本次参会时长", readConverterExp = "秒=")
    private Long durationSeconds;

    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }

    public void setMeetingId(Long meetingId) 
    {
        this.meetingId = meetingId;
    }

    public Long getMeetingId() 
    {
        return meetingId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setJoinTime(Date joinTime) 
    {
        this.joinTime = joinTime;
    }

    public Date getJoinTime() 
    {
        return joinTime;
    }

    public void setLeaveTime(Date leaveTime) 
    {
        this.leaveTime = leaveTime;
    }

    public Date getLeaveTime() 
    {
        return leaveTime;
    }

    public void setDurationSeconds(Long durationSeconds) 
    {
        this.durationSeconds = durationSeconds;
    }

    public Long getDurationSeconds() 
    {
        return durationSeconds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("meetingId", getMeetingId())
            .append("userId", getUserId())
            .append("joinTime", getJoinTime())
            .append("leaveTime", getLeaveTime())
            .append("durationSeconds", getDurationSeconds())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
